package com.ecoolex.discount.sales.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class YouWorldGiftCardExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public YouWorldGiftCardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public YouWorldGiftCardExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public YouWorldGiftCardExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        YouWorldGiftCardExample example = new YouWorldGiftCardExample();
        return example.createCriteria();
    }

    public YouWorldGiftCardExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public YouWorldGiftCardExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public YouWorldGiftCardExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public YouWorldGiftCardExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public YouWorldGiftCardExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCardIdIsNull() {
            addCriterion("youworldgiftcard.CardId is null");
            return (Criteria) this;
        }

        public Criteria andCardIdIsNotNull() {
            addCriterion("youworldgiftcard.CardId is not null");
            return (Criteria) this;
        }

        public Criteria andCardIdEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardId =", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardId <>", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.CardId >", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardId >=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdLessThan(Integer value) {
            addCriterion("youworldgiftcard.CardId <", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardId <=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardIdIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardId in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardId not in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardId between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardId not between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusIsNull() {
            addCriterion("youworldgiftcard.StorefrontStatus is null");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusIsNotNull() {
            addCriterion("youworldgiftcard.StorefrontStatus is not null");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusEqualTo(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus =", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusNotEqualTo(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus <>", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusGreaterThan(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus >", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus >=", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusLessThan(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus <", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus <=", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.StorefrontStatus <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusLike(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus like", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusNotLike(String value) {
            addCriterion("youworldgiftcard.StorefrontStatus not like", value, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusIn(List<String> values) {
            addCriterion("youworldgiftcard.StorefrontStatus in", values, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusNotIn(List<String> values) {
            addCriterion("youworldgiftcard.StorefrontStatus not in", values, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.StorefrontStatus between", value1, value2, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andStorefrontStatusNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.StorefrontStatus not between", value1, value2, "storefrontStatus");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeIsNull() {
            addCriterion("youworldgiftcard.OutOfStockEndTime is null");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeIsNotNull() {
            addCriterion("youworldgiftcard.OutOfStockEndTime is not null");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeEqualTo(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime =", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeNotEqualTo(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime <>", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeGreaterThan(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime >", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime >=", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeLessThan(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime <", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.OutOfStockEndTime <=", value, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.OutOfStockEndTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeIn(List<Date> values) {
            addCriterion("youworldgiftcard.OutOfStockEndTime in", values, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeNotIn(List<Date> values) {
            addCriterion("youworldgiftcard.OutOfStockEndTime not in", values, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.OutOfStockEndTime between", value1, value2, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andOutOfStockEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.OutOfStockEndTime not between", value1, value2, "outOfStockEndTime");
            return (Criteria) this;
        }

        public Criteria andCardNameIsNull() {
            addCriterion("youworldgiftcard.CardName is null");
            return (Criteria) this;
        }

        public Criteria andCardNameIsNotNull() {
            addCriterion("youworldgiftcard.CardName is not null");
            return (Criteria) this;
        }

        public Criteria andCardNameEqualTo(String value) {
            addCriterion("youworldgiftcard.CardName =", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameNotEqualTo(String value) {
            addCriterion("youworldgiftcard.CardName <>", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameGreaterThan(String value) {
            addCriterion("youworldgiftcard.CardName >", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardName >=", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameLessThan(String value) {
            addCriterion("youworldgiftcard.CardName <", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardName <=", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardName <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardNameLike(String value) {
            addCriterion("youworldgiftcard.CardName like", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameNotLike(String value) {
            addCriterion("youworldgiftcard.CardName not like", value, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameIn(List<String> values) {
            addCriterion("youworldgiftcard.CardName in", values, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameNotIn(List<String> values) {
            addCriterion("youworldgiftcard.CardName not in", values, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardName between", value1, value2, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardNameNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardName not between", value1, value2, "cardName");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentIsNull() {
            addCriterion("youworldgiftcard.CardDiscountPercent is null");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentIsNotNull() {
            addCriterion("youworldgiftcard.CardDiscountPercent is not null");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentEqualTo(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent =", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentNotEqualTo(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent <>", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentGreaterThan(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent >", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent >=", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentLessThan(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent <", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("youworldgiftcard.CardDiscountPercent <=", value, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardDiscountPercent <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentIn(List<BigDecimal> values) {
            addCriterion("youworldgiftcard.CardDiscountPercent in", values, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentNotIn(List<BigDecimal> values) {
            addCriterion("youworldgiftcard.CardDiscountPercent not in", values, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("youworldgiftcard.CardDiscountPercent between", value1, value2, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andCardDiscountPercentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("youworldgiftcard.CardDiscountPercent not between", value1, value2, "cardDiscountPercent");
            return (Criteria) this;
        }

        public Criteria andBrandLogoIsNull() {
            addCriterion("youworldgiftcard.BrandLogo is null");
            return (Criteria) this;
        }

        public Criteria andBrandLogoIsNotNull() {
            addCriterion("youworldgiftcard.BrandLogo is not null");
            return (Criteria) this;
        }

        public Criteria andBrandLogoEqualTo(String value) {
            addCriterion("youworldgiftcard.BrandLogo =", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoNotEqualTo(String value) {
            addCriterion("youworldgiftcard.BrandLogo <>", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoGreaterThan(String value) {
            addCriterion("youworldgiftcard.BrandLogo >", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.BrandLogo >=", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoLessThan(String value) {
            addCriterion("youworldgiftcard.BrandLogo <", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.BrandLogo <=", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.BrandLogo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBrandLogoLike(String value) {
            addCriterion("youworldgiftcard.BrandLogo like", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoNotLike(String value) {
            addCriterion("youworldgiftcard.BrandLogo not like", value, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoIn(List<String> values) {
            addCriterion("youworldgiftcard.BrandLogo in", values, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoNotIn(List<String> values) {
            addCriterion("youworldgiftcard.BrandLogo not in", values, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.BrandLogo between", value1, value2, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andBrandLogoNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.BrandLogo not between", value1, value2, "brandLogo");
            return (Criteria) this;
        }

        public Criteria andCardImageIsNull() {
            addCriterion("youworldgiftcard.CardImage is null");
            return (Criteria) this;
        }

        public Criteria andCardImageIsNotNull() {
            addCriterion("youworldgiftcard.CardImage is not null");
            return (Criteria) this;
        }

        public Criteria andCardImageEqualTo(String value) {
            addCriterion("youworldgiftcard.CardImage =", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageNotEqualTo(String value) {
            addCriterion("youworldgiftcard.CardImage <>", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThan(String value) {
            addCriterion("youworldgiftcard.CardImage >", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardImage >=", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageLessThan(String value) {
            addCriterion("youworldgiftcard.CardImage <", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardImage <=", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardImage <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardImageLike(String value) {
            addCriterion("youworldgiftcard.CardImage like", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotLike(String value) {
            addCriterion("youworldgiftcard.CardImage not like", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageIn(List<String> values) {
            addCriterion("youworldgiftcard.CardImage in", values, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotIn(List<String> values) {
            addCriterion("youworldgiftcard.CardImage not in", values, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardImage between", value1, value2, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardImage not between", value1, value2, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeIsNull() {
            addCriterion("youworldgiftcard.CardValueType is null");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeIsNotNull() {
            addCriterion("youworldgiftcard.CardValueType is not null");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeEqualTo(String value) {
            addCriterion("youworldgiftcard.CardValueType =", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeNotEqualTo(String value) {
            addCriterion("youworldgiftcard.CardValueType <>", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeGreaterThan(String value) {
            addCriterion("youworldgiftcard.CardValueType >", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardValueType >=", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeLessThan(String value) {
            addCriterion("youworldgiftcard.CardValueType <", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.CardValueType <=", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardValueType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardValueTypeLike(String value) {
            addCriterion("youworldgiftcard.CardValueType like", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeNotLike(String value) {
            addCriterion("youworldgiftcard.CardValueType not like", value, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeIn(List<String> values) {
            addCriterion("youworldgiftcard.CardValueType in", values, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeNotIn(List<String> values) {
            addCriterion("youworldgiftcard.CardValueType not in", values, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardValueType between", value1, value2, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardValueTypeNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.CardValueType not between", value1, value2, "cardValueType");
            return (Criteria) this;
        }

        public Criteria andCardMinValueIsNull() {
            addCriterion("youworldgiftcard.CardMinValue is null");
            return (Criteria) this;
        }

        public Criteria andCardMinValueIsNotNull() {
            addCriterion("youworldgiftcard.CardMinValue is not null");
            return (Criteria) this;
        }

        public Criteria andCardMinValueEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue =", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue <>", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue >", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue >=", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueLessThan(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue <", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMinValue <=", value, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMinValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMinValueIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardMinValue in", values, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardMinValue not in", values, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardMinValue between", value1, value2, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMinValueNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardMinValue not between", value1, value2, "cardMinValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueIsNull() {
            addCriterion("youworldgiftcard.CardMaxValue is null");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueIsNotNull() {
            addCriterion("youworldgiftcard.CardMaxValue is not null");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue =", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue <>", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue >", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue >=", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueLessThan(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue <", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.CardMaxValue <=", value, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CardMaxValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCardMaxValueIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardMaxValue in", values, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.CardMaxValue not in", values, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardMaxValue between", value1, value2, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andCardMaxValueNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.CardMaxValue not between", value1, value2, "cardMaxValue");
            return (Criteria) this;
        }

        public Criteria andRankingIsNull() {
            addCriterion("youworldgiftcard.Ranking is null");
            return (Criteria) this;
        }

        public Criteria andRankingIsNotNull() {
            addCriterion("youworldgiftcard.Ranking is not null");
            return (Criteria) this;
        }

        public Criteria andRankingEqualTo(Integer value) {
            addCriterion("youworldgiftcard.Ranking =", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.Ranking <>", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.Ranking >", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.Ranking >=", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingLessThan(Integer value) {
            addCriterion("youworldgiftcard.Ranking <", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.Ranking <=", value, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Ranking <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRankingIn(List<Integer> values) {
            addCriterion("youworldgiftcard.Ranking in", values, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.Ranking not in", values, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.Ranking between", value1, value2, "ranking");
            return (Criteria) this;
        }

        public Criteria andRankingNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.Ranking not between", value1, value2, "ranking");
            return (Criteria) this;
        }

        public Criteria andFaceValueIsNull() {
            addCriterion("youworldgiftcard.FaceValue is null");
            return (Criteria) this;
        }

        public Criteria andFaceValueIsNotNull() {
            addCriterion("youworldgiftcard.FaceValue is not null");
            return (Criteria) this;
        }

        public Criteria andFaceValueEqualTo(Integer value) {
            addCriterion("youworldgiftcard.FaceValue =", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.FaceValue <>", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.FaceValue >", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.FaceValue >=", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueLessThan(Integer value) {
            addCriterion("youworldgiftcard.FaceValue <", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.FaceValue <=", value, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.FaceValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFaceValueIn(List<Integer> values) {
            addCriterion("youworldgiftcard.FaceValue in", values, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.FaceValue not in", values, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.FaceValue between", value1, value2, "faceValue");
            return (Criteria) this;
        }

        public Criteria andFaceValueNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.FaceValue not between", value1, value2, "faceValue");
            return (Criteria) this;
        }

        public Criteria andIsAddedIsNull() {
            addCriterion("youworldgiftcard.IsAdded is null");
            return (Criteria) this;
        }

        public Criteria andIsAddedIsNotNull() {
            addCriterion("youworldgiftcard.IsAdded is not null");
            return (Criteria) this;
        }

        public Criteria andIsAddedEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded =", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedNotEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded <>", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedGreaterThan(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded >", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded >=", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedLessThan(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded <", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedLessThanOrEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.IsAdded <=", value, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.IsAdded <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsAddedIn(List<Boolean> values) {
            addCriterion("youworldgiftcard.IsAdded in", values, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedNotIn(List<Boolean> values) {
            addCriterion("youworldgiftcard.IsAdded not in", values, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedBetween(Boolean value1, Boolean value2) {
            addCriterion("youworldgiftcard.IsAdded between", value1, value2, "isAdded");
            return (Criteria) this;
        }

        public Criteria andIsAddedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("youworldgiftcard.IsAdded not between", value1, value2, "isAdded");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("youworldgiftcard.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("youworldgiftcard.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("youworldgiftcard.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("youworldgiftcard.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("youworldgiftcard.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("youworldgiftcard.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("youworldgiftcard.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("youworldgiftcard.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("youworldgiftcard.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("youworldgiftcard.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("youworldgiftcard.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("youworldgiftcard.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("youworldgiftcard.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("youworldgiftcard.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("youworldgiftcard.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("youworldgiftcard.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("youworldgiftcard.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("youworldgiftcard.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("youworldgiftcard.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("youworldgiftcard.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("youworldgiftcard.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("youworldgiftcard.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("youworldgiftcard.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("youworldgiftcard.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("youworldgiftcard.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("youworldgiftcard.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("youworldgiftcard.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("youworldgiftcard.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("youworldgiftcard.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("youworldgiftcard.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("youworldgiftcard.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("youworldgiftcard.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("youworldgiftcard.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("youworldgiftcard.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("youworldgiftcard.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("youworldgiftcard.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("youworldgiftcard.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("youworldgiftcard.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("youworldgiftcard.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("youworldgiftcard.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("youworldgiftcard.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("youworldgiftcard.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("youworldgiftcard.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("youworldgiftcard.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("youworldgiftcard.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("youworldgiftcard.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("youworldgiftcard.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("youworldgiftcard.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("youworldgiftcard.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("youworldgiftcard.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("youworldgiftcard.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("youworldgiftcard.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("youworldgiftcard.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("youworldgiftcard.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("youworldgiftcard.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("youworldgiftcard.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(YouWorldGiftCard.Column column) {
            addCriterion(new StringBuilder("youworldgiftcard.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("youworldgiftcard.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("youworldgiftcard.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("youworldgiftcard.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private YouWorldGiftCardExample example;

        protected Criteria(YouWorldGiftCardExample example) {
            super();
            this.example = example;
        }

        public YouWorldGiftCardExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(YouWorldGiftCard.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(YouWorldGiftCard.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.discount.sales.entity.YouWorldGiftCardExample example);
    }
}